import React from 'react';
import styles from './PageTopFormContent.less';

const PageTopFormContent = ({ title, titleStyle, content, style }) => (
  <div className={styles.root} style={{ ...style }}>
    <div className={styles.title} style={{ ...titleStyle, marginBottom: `${content ? '16px' : '0'}` }}>{title}</div>
    {content}
  </div>
);

export default PageTopFormContent;
